<?php
require_once("mysql.php");
$task_id = $_GET['task_id'];

$query = "SELECT list_id from todo_entry where id = $task_id";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
echo $row['list_id'];
?>
